package cn.powertime.evaluation.service;

import cn.powertime.evaluation.entity.CpsUserCollect;
import cn.powertime.evaluation.vo.RespAnswerTopicListVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户收藏试卷表 服务类
 * </p>
 *
 * @author liqi
 * @since 2019-09-23
 */
public interface CpsUserCollectService extends IService<CpsUserCollect> {

    boolean add(CpsUserCollect userCollect);

    boolean delete(Long userId, Long topicId);

    /**
     * 用户收藏习题列表
     *
     * @param page   分页参数
     * @param userId 用户id
     * @return Page
     */
    Page<RespAnswerTopicListVo> list(Page page, Long userId);

}
